import request from '@/utils/request'

// 查询评估列表
export function listEvaluate(query) {
  return request({
    url: '/buss/evaluate/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean(data) {
  return request({
    url: '/buss/evaluate/initBean',
    method: 'post',
    data: data
  })
}

// 查询评估详细
export function getEvaluate(evalid) {
  return request({
    url: '/buss/evaluate/' + evalid,
    method: 'get'
  })
}

// 新增评估
export function addEvaluate(data) {
  return request({
    url: '/buss/evaluate',
    method: 'post',
    data: data
  })
}

// 修改评估
export function updateEvaluate(data) {
  return request({
    url: '/buss/evaluate',
    method: 'put',
    data: data
  })
}

// 删除评估
export function delEvaluate(evalid) {
  return request({
    url: '/buss/evaluate/' + evalid,
    method: 'delete'
  })
}
